package JFrame;

import javax.swing.*;
import java.awt.*;

// 查询活期存款界面
public class TimeRecordsJFrame extends JFrame {
    public TimeRecordsJFrame() {
        this.setName("村镇银行业务储蓄系统");
        this.setTitle("用户操作界面");
        this.setSize(600, 700);
        this.setAlwaysOnTop(true);
        this.setLocationRelativeTo(null);
        this.setDefaultCloseOperation(2);
        this.setLayout(new FlowLayout());
        this.setVisible(true);

        JLabel labelName = new JLabel("姓名");
        JLabel labelCard = new JLabel("银行卡号");
        JLabel labelMoney = new JLabel("存入钱数");
        JLabel labelDate = new JLabel("存入日期");
        JLabel labelRate = new JLabel("存款利率");
        JLabel labelperiod = new JLabel("存期");

        Font font = new Font("宋体", Font.PLAIN, 20);
        labelName.setFont(font);
        labelCard.setFont(font);
        labelMoney.setFont(font);
        labelDate.setFont(font);
        labelRate.setFont(font);
        labelperiod.setFont(font);

        JPanel p1 = new JPanel();
        p1.add(labelName);
        p1.add(labelCard);
        p1.add(labelMoney);
        p1.add(labelDate);
        p1.add(labelRate);
        p1.add(labelperiod);
        this.add(p1);
    }

}
